
struct2.o:     file format elf64-littleaarch64


Disassembly of section .text:

0000000000000000 <main>:
	int count;
	char something[20];
}stu[3] = {{12, 13, "esp"}, {15,16, "sk"}, {17, 18, "we"}};

int main()
{
   0:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
   4:	910003fd 	mov	x29, sp
	struct ec *p;
	
	p = stu;
   8:	90000000 	adrp	x0, 0 <main>
   c:	91000000 	add	x0, x0, #0x0
  10:	f9000fa0 	str	x0, [x29, #24]
	//p = (struct ec *) &stu[0].num;
	printf("%d\n", p);		// 地址
  14:	90000000 	adrp	x0, 0 <main>
  18:	91000000 	add	x0, x0, #0x0
  1c:	f9400fa1 	ldr	x1, [x29, #24]
  20:	94000000 	bl	0 <printf>
	printf("%d\n", p + 1);	
  24:	f9400fa0 	ldr	x0, [x29, #24]
  28:	91007001 	add	x1, x0, #0x1c
  2c:	90000000 	adrp	x0, 0 <main>
  30:	91000000 	add	x0, x0, #0x0
  34:	94000000 	bl	0 <printf>
	printf("%p\n", p);		// 地址(十六进制)
  38:	90000000 	adrp	x0, 0 <main>
  3c:	91000000 	add	x0, x0, #0x0
  40:	f9400fa1 	ldr	x1, [x29, #24]
  44:	94000000 	bl	0 <printf>
	printf("%p\n", p + 1);	
  48:	f9400fa0 	ldr	x0, [x29, #24]
  4c:	91007001 	add	x1, x0, #0x1c
  50:	90000000 	adrp	x0, 0 <main>
  54:	91000000 	add	x0, x0, #0x0
  58:	94000000 	bl	0 <printf>
	
	p = (struct ec *) &stu[0];	// ==	 p = stu;
  5c:	90000000 	adrp	x0, 0 <main>
  60:	91000000 	add	x0, x0, #0x0
  64:	f9000fa0 	str	x0, [x29, #24]
	printf("%d\t%d\t%s\n", p->num, p->count, p->something);
  68:	f9400fa0 	ldr	x0, [x29, #24]
  6c:	b9400001 	ldr	w1, [x0]
  70:	f9400fa0 	ldr	x0, [x29, #24]
  74:	b9400402 	ldr	w2, [x0, #4]
  78:	f9400fa0 	ldr	x0, [x29, #24]
  7c:	91002003 	add	x3, x0, #0x8
  80:	90000000 	adrp	x0, 0 <main>
  84:	91000000 	add	x0, x0, #0x0
  88:	94000000 	bl	0 <printf>
	printf("%d\t%d\t%s\n", (p+1)->num, (p+1)->count, (p+1)->something);
  8c:	f9400fa0 	ldr	x0, [x29, #24]
  90:	91007000 	add	x0, x0, #0x1c
  94:	b9400001 	ldr	w1, [x0]
  98:	f9400fa0 	ldr	x0, [x29, #24]
  9c:	91007000 	add	x0, x0, #0x1c
  a0:	b9400402 	ldr	w2, [x0, #4]
  a4:	f9400fa0 	ldr	x0, [x29, #24]
  a8:	91007000 	add	x0, x0, #0x1c
  ac:	91002003 	add	x3, x0, #0x8
  b0:	90000000 	adrp	x0, 0 <main>
  b4:	91000000 	add	x0, x0, #0x0
  b8:	94000000 	bl	0 <printf>
	
	return 0;
  bc:	52800000 	mov	w0, #0x0                   	// #0
}
  c0:	a8c27bfd 	ldp	x29, x30, [sp], #32
  c4:	d65f03c0 	ret
